﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Photography
{
    public partial class Error : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (Server.GetLastError() != null)
                {
                    lblException.Text =
                        Server.HtmlEncode(Server.GetLastError().ToString());
                    Server.ClearError();
                }
                else
                    lblException.Text = "!!Unknwon Error Occured!!";

                Page.Title = "Error occurred";
            }
            catch
            {
            }
        }
    }
}